home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-M68K / KEYBOARD.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  66 lines

  1. /*
  2.  *  linux/include/asm-m68k/keyboard.h
  3.  *
  4.  *  Created 3 Nov 1996 by Geert Uytterhoeven
  5.  */
  6.  
  7. /*
  8.  *  This file contains the m68k architecture specific keyboard definitions
  9.  */
  10.  
  11. #include <linux/config.h> /* CONFIG_MAGIC_SYSRQ */
  12. #ifndef __M68K_KEYBOARD_H
  13. #define __M68K_KEYBOARD_H
  14.  
  15. #ifdef __KERNEL__
  16.  
  17. #include <asm/machdep.h>
  18.  
  19. static __inline__ int kbd_setkeycode(unsigned int scancode,
  20.                      unsigned int keycode)
  21. {
  22.     return -EOPNOTSUPP;
  23. }
  24.  
  25. static __inline__ int kbd_getkeycode(unsigned int scancode)
  26. {
  27.     return scancode > 127 ? -EINVAL : scancode;
  28. }
  29.  
  30. static __inline__ int kbd_pretranslate(unsigned char scancode, char raw_mode)
  31. {
  32.     return 1;
  33. }
  34.  
  35. static __inline__ int kbd_translate(unsigned char scancode,
  36.                     unsigned char *keycode, char raw_mode)
  37. {
  38.     *keycode = scancode;
  39.     return 1;
  40. }
  41.  
  42. static __inline__ char kbd_unexpected_up(unsigned char keycode)
  43. {
  44.     return 0200;
  45. }
  46.  
  47. static __inline__ void kbd_leds(unsigned char leds)
  48. {
  49.     if (mach_kbd_leds)
  50.     mach_kbd_leds(leds);
  51. }
  52.  
  53. #ifdef CONFIG_MAGIC_SYSRQ
  54. #define kbd_is_sysrq(keycode)    ((keycode) == mach_sysrq_key && \
  55.                  (up_flag || \
  56.                   (shift_state & mach_sysrq_shift_mask) == \
  57.                   mach_sysrq_shift_state))
  58. #define kbd_sysrq_xlate            mach_sysrq_xlate
  59. #endif
  60.  
  61. #define kbd_init_hw    mach_keyb_init
  62.  
  63. #endif /* __KERNEL__ */
  64.  
  65. #endif /* __M68K_KEYBOARD_H */
  66.